package com.magina.antiPro.dto;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class PayDetailToBabModel {

    private static final long serialVersionUID = -5197016274254913057L;
    private Integer id;
    private String productCode;
    private String productName;
    private Long money;
    private BigDecimal amount;
    private BigDecimal price;
    private Integer cityId;
    public String getCodeAndCityId() {
        if (money >= 0) {
            return  productCode+"_"+cityId;
        } else {
            return  "2"+productCode+"_"+cityId;
        }
    }
}
